﻿using System;
using System.Collections.Generic;
using Cool.Core.Entities.System;
using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;

namespace Cool.Core
{
    public class SysUserSeedData : IEntitySeedData<SysUser>
    {
        /// <summary>
        /// 种子数据
        /// </summary>
        /// <param name="dbContext"></param>
        /// <param name="dbContextLocator"></param>
        /// <returns></returns>
        public IEnumerable<SysUser> HasData(DbContext dbContext, Type dbContextLocator)
        {
            return new[]
            {
                new SysUser
                {
                    Id=1,UserName="admin",UserType="00", Password="21232f297a57a5a743894a0e4a801fc3",CreatedTime=DateTime.Now,IsDeleted=false,Status='0'
                }
            };
        }
    }
}
